package com.bootdo.app.common.aop.exception;

import lombok.Getter;

/**
 * @auther: Along
 * @description: todo 类说明
 * @Date: created in 2020/12/9 18:45
 */
@Getter
public enum ExceptionEnum {
    // 微信异常枚举 起始 2001 其他业务 3001 ... 4001... 5001... 6001... 7001... 8001... 9001...
    WX_INVALID_APPID(2000,"invalid appid"),
    WX_REQUEST_ERROR(2001,"微信服务请求失败"),
    WX_REQUEST_TIME_OUT(2002,"微信服务请求超时"),


    // 小程序业务一场枚举
    MINI_PROGRAM_LOGIN_ERROR(3001,"错误的业务id"),
    MINI_PROGRAM_NOT_MEET_ENOUGH(3002,"抱歉您当月签到时长未满20天，请再接再励"),
    MINI_PROGRAM_IS_MEET(3003,"今日已签到，请明天再来"),
    MINI_PROGRAM_GROUP_BUY_NULL(3004,"拼团不存在"),
    MINI_PROGRAM_GROUP_BUY_JOIN_FAIL(3005,"加入的拼团已失效"),
    MINI_PROGRAM_CASH_OUT_AMOUNT_GT_100_LT_500000(3006,"提现金额需满1元,单笔单日限额5000元"),
    MINI_PROGRAM_CASH_OUT_AMOUNT_ERROR(3007,"只能提现整数部分，小数部分可累计到下次提现"),
    MINI_PROGRAM_CASH_OUT_AMOUNT_MSG_ZXJE(3008,"最小提现金额需满?元"),
    MINI_PROGRAM_CASH_OUT_AMOUNT_MSG_JGSJ(3009,"提现操作需要间隔?天"),
    MINI_PROGRAM_CASH_OUT_BALANCE_NOT_ENOUGH(3010,"余额不足，提现失败"), // 用户余额不足
    MINI_PROGRAM_CASH_OUT_ERROR(3011,"提现失败,请联系客服"),// 代理商余额不足




    ;
    private Integer code;
    private String msg;

    ExceptionEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
